﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Chip8.Core.Bus
{
	internal abstract class Device : IDevice
	{
		public Device(SystemBus bus)
		{
			Bus = bus;
			Bus.RegisterDevice(this);
		}

		public SystemBus Bus { get; private set; }
		
		public abstract void Reset();

		public abstract void Tick();
	}
}
